/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.clooud.modulos.eventos.bean;

import com.clooud.modulos.eventos.model.EventoModel;
import com.clooud.modulos.eventos.controller.EventosController;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author selvino
 */
@ManagedBean
@ViewScoped
public class EventosBean {

    private List<EventoModel> eventos;

    public List<EventoModel> getEventos() {
        if (eventos == null) {
            eventos = EventosController.getEventos();
        }
        return eventos;
    }

}
